//
//  BaseCollectionView.h
//  JKWDTeacher
//
//  Created by 学大教育 on 2022/1/18.
//

#import <UIKit/UIKit.h>
#import "BaseCollectionViewCell.h"
NS_ASSUME_NONNULL_BEGIN
@protocol CollectionSelectCellDelegate <NSObject>

@optional
///cell的点击方法
- (void)collectionView:(UICollectionView *)collectionView didselectIndexPath:(NSIndexPath *)indexPath;
///cell上按钮或是手势的点击方法
- (void)collectionView:(UICollectionView *)collectionView didActionIndexPath:(NSIndexPath *)indexPath infoData:(id)data;

///加载错误重新加载按钮的点击方法
-(void)networkLoadErrorBtnClick;

@end

@interface BaseCollectionView : UICollectionView <UICollectionViewDelegate, UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,CollectionCellActionDelegate>
@property (nonatomic, strong) NSArray *sourceData;

@property (nonatomic, weak) id<CollectionSelectCellDelegate> cellDelegate;

//多区域
@property (nonatomic, assign) BOOL isMultiSection;
@end

NS_ASSUME_NONNULL_END
